<template>
<div></div>
</template>

<script>
import {fetchTree} from '@/api/admin/dept'
import {mapGetters} from 'vuex'

export default {
  name: "deptTree",
  data() {
    return {
      treeData:[]
    }
  },
  created() {
    this.init()
  },
  methods: {
    init() {
      fetchTree().then(response => {
        this.treeData = response.data.data
       //console.log(this.treeData)
      })
    },
  }
}
</script>

<style scoped>

</style>
